﻿@{
    ViewBag.Title = "Home Page";
}
<style>
    .body-content {
        padding-left: 0;
        padding-right: 0;
    }
    .container {
        max-width: 100%;
        max-height: 100%;
    }
    .bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
        width: 100%;
    }
</style>
<div class="row main-page-search">
    @*@Html.Partial("_SearchDialog")*@
    <div class="col-md-8 col-sm-5">
        <a id="big-logo" href="/"></a>
        @if (!User.Identity.IsAuthenticated)
        {
            <div class="container-mini-box">
                <ul>
                    <li>Inscrivez-vous en 2 minutes</li>
                    <li>Sauvegarder des emplois trouvées</li>
                    <li>Déposer des emplois</li>
                    <li>Postuler au recruiteur</li>
                </ul>
                @Html.ActionLink("INCRIVEZ-VOUS", "Register", "Account", null, new { @class="btn btn-success", @style="width: 42%" })
                ou
                @Html.ActionLink("CONNECTEZ-VOUS", "Login", "Account", null, new { @class = "btn btn-warning", @style = "width: 50%" })
            </div>
        }
    </div>
    <div class="col-md-4 col-sm-5">
        @using (Html.BeginForm("Index", "Offre"))
        {
            <div class="panel panel-default">
                <div class="panel-body">
                    <h4>Bienvenue!</h4>
                    <span>Rechercher des emplois rapidement</span>
                    <hr />
                    <div class="choisir-field">
                        @Html.DropDownList("DomaineSelectedID", (List<SelectListItem>)ViewBag.Domaines, "---Choisir un secteur---", new { @class = "selectpicker show-tick ", data_live_search = "true" })
                    </div>
                    <div class="choisir-field">
                        @Html.DropDownList("ProvineSelectedID", (List<SelectListItem>)ViewBag.Provines, "---Choisir une provine---", new { @class = "selectpicker show-tick", data_live_search = "true" })
                    </div>
                    <div class="choisir-field">
                        @Html.DropDownList("OffreTypeSelectedID", (List<SelectListItem>)ViewBag.OffreTypes, "---Choisir un type de contract---", new { @class = "selectpicker show-tick" })
                    </div>
                    <div class="choisir-field">
                        <input class="form-control" type="text" placeholder="Mots cles..." name="searchKeys" />
                    </div>
                    <hr />
                    <input type="submit" class="btn btn-primary" style="width: 100%" value="RECHERCHER" />
                    <div class="rechercher-avancee">
                        @Html.ActionLink("RECHERCHER AVANCÉE", "RechercherAvancee", "Offre")
                    </div>
                </div>
            </div>
        }
    </div>

</div>
